AddUniqueName (filters)

Adds a new filter to an existing filter object for filtering embedded content using the unique name convention

addUniqueName(mnember's uniquename :string): filter
  • Provide the names for the member using its unique name that defines the filter.
  • You can chain a set of "addUniqueName" functions to built a composite of filters

Example

The following instantiates a new filter object and attaches a filter for the year 2020 from the dates dimension.

var fil = Filter.create(); fil.addUniqueName("[dates].[years].[2020]");

Here, 2 filters are added for 2019 and 2020

var fil = filter.byUniqueName("[dates].[years].[2020]"); fil.addUniqueName("[dates].[years].[2019]");